let server = require("http").createServer()
server.listen(5200,"localhost")

server.on("request",(req,res)=>{
    let array = []
    req.on('data', (chunk) => {
        array.push(chunk)
    }).on('end', () => {
        const body = Buffer.concat(array).toString()
        console.log(body)
        res.setHeader('Content-Type','text/plain;charset=utf-8')
       res.end('hi')
    })
    
})